package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctsi.core.database.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 系统日志表实体类
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:36
 */
@Data
@TableName("mars_sys_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysLog对象", description = "系统日志表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 日志类型
     */
    @ApiModelProperty(value = "日志类型")
    private String type;
    /**
     * 跟踪ID
     */
    @ApiModelProperty(value = "跟踪ID")
    private String traceId;
    /**
     * 日志标题
     */
    @ApiModelProperty(value = "日志标题")
    private String title;
    /**
     * 操作内容
     */
    @ApiModelProperty(value = "操作内容")
    private String operation;
    /**
     * 执行方法
     */
    @ApiModelProperty(value = "执行方法")
    private String methodType;
    /**
     * 请求路径
     */
    @ApiModelProperty(value = "请求路径")
    private String url;
    /**
     * 参数
     */
    @ApiModelProperty(value = "参数")
    private String params;
    /**
     * ip地址
     */
    @ApiModelProperty(value = "ip地址")
    private String ip;
    /**
     * 耗时
     */
    @ApiModelProperty(value = "耗时")
    private Long executeTime;
    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String location;
    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    private String userName;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    /**
     * 异常信息
     */
    @ApiModelProperty(value = "异常信息")
    private String exception;
    /**
     * 类名
     */
    @ApiModelProperty(value = "类名")
    private String classPath;
    /**
     * 方法名
     */
    @ApiModelProperty(value = "方法名")
    private String methodName;
    /**
     * 浏览器
     */
    @ApiModelProperty(value = "浏览器")
    private String browser;

    /**
     * 操作系统
     */
    @ApiModelProperty(value = "操作系统")
    private String os;
    /**
     * 微服务ID
     */
    @ApiModelProperty(value = "微服务ID")
    private String serviceId;

}
